package com.wang.component;

import com.alipay.api.AlipayApiException;
import com.wang.vo.PayInfoVO;

public interface PayStrategy {
    /**
     * 下单
     * @param payInfoVO
     * @return
     */
    String orderPay(PayInfoVO payInfoVO) throws AlipayApiException;

    /**
     * 查询订单是否支付成功         default可以用来扩展默认实现
     * @param payInfoVO
     * @return
     */
    default String queryOrderSuccess(PayInfoVO payInfoVO){return "";}

    /**
     * 退款
     * @param payInfoVO
     * @return
     */
    default String returnMoney(PayInfoVO payInfoVO){return "";}
}
